﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="list_profiles.aspx.cs" Inherits="profiles_list_profiles" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="ajaxToolkit" %>

<%@ Register assembly="DevExpress.Web.ASPxGridView.v10.1, Version=10.1.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxGridView" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxEditors.v10.1, Version=10.1.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
   <title>List profiles</title>
   <link rel="stylesheet" href="../styles/jquery.autocomplete.css" type="text/css" />
   <link href="../styles/style.css" rel="stylesheet" type="text/css" />   
      
   <link type="text/css" href="../css/smoothness/jquery-ui-1.8.11.custom.css" rel="stylesheet" /> 
   <script src="../js/jquery-1.5.min.js" type="text/javascript"></script>
   <script src="../js/jquery-ui-1.8.9.custom.min.js" type="text/javascript"></script>
   <script src="../js/jquery.autocomplete.js" type="text/javascript"></script>
            <script type="text/javascript">
                $(function() {
                    $("input[id$=txtFrom]").datepicker({
                        yearRange: "-1:+0",
                        dateFormat: 'dd/mm/yy',
                        changeMonth: true,
                        changeYear: true
                    });
                    $("input[id$=txtTo]").datepicker({
                        yearRange: "-1:+0",
                        dateFormat: 'dd/mm/yy',
                        changeMonth: true,
                        changeYear: true
                    });

                });

    </script> 
   
</head>
<body>
    <form id="form1" runat="server">

    <div class="wrapper">
       <div id="header">
		<h1 class="logo">
        <a href="../index.aspx">
        	<img src="../images/logo.png" width="280" height="46" border="0" /></a>
        
        </h1>
         <div class="login_zone" >
        Username:<asp:Literal ID="lUsername" Text="" runat="server" />
        <br />
         <asp:LinkButton ID="lnkLogout" runat="server" Text="Logout" 
                 onclick="lnkLogout_Click" /> | <a href="login/change_pass.aspx">Change password</a>
        </div>
        </div>
     <div class="clear"></div>
     <div id="nav">
      <div style="margin-bottom:20px;width:240px;float:left;">
              <ul class="breadcrumb">
        <li>
            <a href="../index.aspx" title="Home">
         
                 <img src="../images/home.png" width="24" height="23" border="0" align="left" style="margin-top:2px;" class="home" />
      
            </a>
              
            </li>
            <li>
            <a href="../index.aspx"   title="homepage">
                Homepage
                </a>
            </li>
        <li>
            
                List profiles
            
       </li>
      
     </ul>
     </div>
        </div>
        <div class="main_content2">
    
         
          
          
              <div style="margin-top:-8px;">
               <img src="../images/list_profiles.png" width="900" height="77" />
             </div>
                 <br /><br />
                 
                 <div id="search_profile">
                    
                     <div style="width:60px;float:left; height: 16px;height:20px;padding-top:4px;">
                        Search:
                     </div>        
                     <div>
                     <dx:ASPxComboBox ID="cbFullName" runat="server" Width="240px" 
                             EnableCallbackMode="True" 
                            
                             IncrementalFilteringMode="Contains" CallbackPageSize="10" 
                             DropDownStyle="DropDown" onselectedindexchanged="cbFullName_SelectedIndexChanged"
                             >
                     </dx:ASPxComboBox>
                    </div>
                             
                 </div>
                 
                 <div id="filter_profiles">
                 
                    <table style="margin-top:4px;margin-left:14px;">
                        <tr>
                            <td>
                                    Profile date from:       
                            </td>
                            <td>
                                 <asp:TextBox ID="txtFrom" runat="server" 
                    CssClass="box2" Width="90px" TabIndex="7" ></asp:TextBox>
                            
                            </td>
                            <td>
                                 to date: 
                                <asp:TextBox ID="txtTo" runat="server" 
                    CssClass="box2" Width="90px" TabIndex="7"></asp:TextBox>
                            
                            </td>
                            <td>
                           <asp:Button ID="btnView" runat="server" Text="View" CssClass="button white" 
                               onclick="btnView_Click"  />
            
                            </td>
                            <td>
                    
                    <asp:Button ID="btnRefresh" runat="server" Text="Reload" 
                               CssClass="button white" onclick="btnRefresh_Click"  />
                            
                            </td>
                        </tr>
                    </table>
                    </div>
                 
                     <br />
                     <br />
                    
                               
              <div style="clear:both;width:900px;height:auto;margin-left:8px;margin-top:16px;">
               
<dx:ASPxGridView ID="gdProfiles" runat="server" AutoGenerateColumns="False" 
                      Width="880px" KeyFieldName="id" onrowcommand="gdProfiles_RowCommand1" 
                      oncustombuttoncallback="gdProfiles_CustomButtonCallback" 
                      onhtmlrowcreated="gdProfiles_HtmlRowCreated"  >
                   

                   
                    <Columns>
                        
                        
                        <dx:GridViewDataTextColumn Caption="Export to PDF" VisibleIndex="0" 
                            Width="90px">
                            <DataItemTemplate>
                                <asp:HyperLink runat="server" 
                                NavigateUrl='<%#"export_pdf_profiles.aspx?id="+Eval("profile_id") %>'
                                
                                  Text="Export" Target="_blank" ></asp:HyperLink>
                            </DataItemTemplate>
                        </dx:GridViewDataTextColumn>
                        
                        
                       <dx:GridViewCommandColumn ShowSelectCheckbox="false" VisibleIndex="1" 
                            Name="Commands" Caption="Commands" Width="130px">                            
                            
                            <CustomButtons>                             
                                
                                <dx:GridViewCommandColumnCustomButton ID="btnDetail" Text="Detail">                                    
                                </dx:GridViewCommandColumnCustomButton>
                                <dx:GridViewCommandColumnCustomButton ID="btnEdit" Text="Edit" ></dx:GridViewCommandColumnCustomButton>
                                <dx:GridViewCommandColumnCustomButton ID="btnDelete" Text="Delete"></dx:GridViewCommandColumnCustomButton>
                                
                            
                            </CustomButtons>
                            
                            
                            <CellStyle HorizontalAlign="Left">
                            </CellStyle>
                            
                            
                      </dx:GridViewCommandColumn>
                        <dx:GridViewDataTextColumn Caption="ID" FieldName="profile_id" VisibleIndex="2" 
                            Visible="False">
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn Caption="Fullname" VisibleIndex="3" 
                            FieldName="fullname" Width="180px">
                          
                          
                          
                            <CellStyle HorizontalAlign="Left">
                            </CellStyle>
                          
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn Caption="Height (cm)" VisibleIndex="3" 
                            FieldName="height">
                              <Settings AllowHeaderFilter="True" />
                              <CellStyle HorizontalAlign="Center">
                            </CellStyle>
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn Caption="B.O.D" VisibleIndex="4" FieldName="birth" 
                            Width="80">
                          <PropertiesTextEdit DisplayFormatString="dd-MM-yyyy"></PropertiesTextEdit>
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn Caption="Tel." VisibleIndex="5" FieldName="phone">
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn Caption="Email" VisibleIndex="6" FieldName="mail" 
                            Width="180px">
                            <CellStyle HorizontalAlign="Left">
                            </CellStyle>
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn Caption="Degree" VisibleIndex="7" 
                            FieldName="degree_type">
                            
                             <Settings AllowHeaderFilter="True" />
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn Caption="Expected Salary" VisibleIndex="8" 
                            FieldName="expectedsalary" Width="140px">
                            <PropertiesTextEdit DisplayFormatString="c0"></PropertiesTextEdit>
                            <Settings AllowAutoFilter="True" AllowHeaderFilter="True" />
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn Caption="Currency" VisibleIndex="8" FieldName="currency_salary">
                         
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn Caption="Available date" VisibleIndex="9" 
                            FieldName="availabledate">
                            <PropertiesTextEdit DisplayFormatString="dd-MM-yyyy"></PropertiesTextEdit>
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn Caption="Date created" VisibleIndex="10" 
                            FieldName="date_created">
                             <PropertiesTextEdit DisplayFormatString="dd-MM-yyyy"></PropertiesTextEdit>
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn Caption="Conclusion" VisibleIndex="11" 
                            FieldName="recruitment_conclusion">
                        </dx:GridViewDataTextColumn>
                    </Columns>
                  
                    <Settings ShowHorizontalScrollBar="True" ShowFilterRow="True" />
                  
                </dx:ASPxGridView>
               
                </div>
           </div>
        
       

        <div id="footer" style="float:right;">
        	<p>
            	IT Dev 2011<br />
                Version beta
                
                
            </p>
        
        </div>
        
	</div>    
    </form>
</body>

</html>
